#ifndef MySceneManager_H
#define MySceneManager_H
#include "Math/Util.h"

enum SceneType
{
	LoadScene,
	MenuScene,
	GameScene
};
class CLoadScene;
class CGameScene;
class CMenuScene;
#define SceneManager (CSceneManager::GetInstance())
class CSceneManager
{
public:
	static CSceneManager* GetInstance()
	{
		if(0 == mInstance)
			mInstance = new CSceneManager();
		return mInstance;
	}
	~CSceneManager();
	CCScene* GetScene(SceneType type);
	CCLayer* GetLayer(SceneType type);
	CCScene* GetCurrentScene();
	void SwitchScene(SceneType type);
	void Init();

private:
	CSceneManager(){}
	static CSceneManager*			mInstance;
	CLoadScene*						mLoadScene;
	CGameScene*						mGameScene;
	CMenuScene*						mMenuScene;
	SceneType						mCurrentType;
};



#endif